package com.hydl.power.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IdenticalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IdenticalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andModuleIdIsNull() {
            addCriterion("module_id is null");
            return (Criteria) this;
        }

        public Criteria andModuleIdIsNotNull() {
            addCriterion("module_id is not null");
            return (Criteria) this;
        }

        public Criteria andModuleIdEqualTo(Integer value) {
            addCriterion("module_id =", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotEqualTo(Integer value) {
            addCriterion("module_id <>", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdGreaterThan(Integer value) {
            addCriterion("module_id >", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("module_id >=", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdLessThan(Integer value) {
            addCriterion("module_id <", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("module_id <=", value, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdIn(List<Integer> values) {
            addCriterion("module_id in", values, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotIn(List<Integer> values) {
            addCriterion("module_id not in", values, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdBetween(Integer value1, Integer value2) {
            addCriterion("module_id between", value1, value2, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("module_id not between", value1, value2, "moduleId");
            return (Criteria) this;
        }

        public Criteria andModuleNameIsNull() {
            addCriterion("module_name is null");
            return (Criteria) this;
        }

        public Criteria andModuleNameIsNotNull() {
            addCriterion("module_name is not null");
            return (Criteria) this;
        }

        public Criteria andModuleNameEqualTo(String value) {
            addCriterion("module_name =", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameNotEqualTo(String value) {
            addCriterion("module_name <>", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameGreaterThan(String value) {
            addCriterion("module_name >", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameGreaterThanOrEqualTo(String value) {
            addCriterion("module_name >=", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameLessThan(String value) {
            addCriterion("module_name <", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameLessThanOrEqualTo(String value) {
            addCriterion("module_name <=", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameLike(String value) {
            addCriterion("module_name like", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameNotLike(String value) {
            addCriterion("module_name not like", value, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameIn(List<String> values) {
            addCriterion("module_name in", values, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameNotIn(List<String> values) {
            addCriterion("module_name not in", values, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameBetween(String value1, String value2) {
            addCriterion("module_name between", value1, value2, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleNameNotBetween(String value1, String value2) {
            addCriterion("module_name not between", value1, value2, "moduleName");
            return (Criteria) this;
        }

        public Criteria andModuleAddressIsNull() {
            addCriterion("module_address is null");
            return (Criteria) this;
        }

        public Criteria andModuleAddressIsNotNull() {
            addCriterion("module_address is not null");
            return (Criteria) this;
        }

        public Criteria andModuleAddressEqualTo(String value) {
            addCriterion("module_address =", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressNotEqualTo(String value) {
            addCriterion("module_address <>", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressGreaterThan(String value) {
            addCriterion("module_address >", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressGreaterThanOrEqualTo(String value) {
            addCriterion("module_address >=", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressLessThan(String value) {
            addCriterion("module_address <", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressLessThanOrEqualTo(String value) {
            addCriterion("module_address <=", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressLike(String value) {
            addCriterion("module_address like", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressNotLike(String value) {
            addCriterion("module_address not like", value, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressIn(List<String> values) {
            addCriterion("module_address in", values, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressNotIn(List<String> values) {
            addCriterion("module_address not in", values, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressBetween(String value1, String value2) {
            addCriterion("module_address between", value1, value2, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andModuleAddressNotBetween(String value1, String value2) {
            addCriterion("module_address not between", value1, value2, "moduleAddress");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameIsNull() {
            addCriterion("co_strc_name is null");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameIsNotNull() {
            addCriterion("co_strc_name is not null");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameEqualTo(String value) {
            addCriterion("co_strc_name =", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameNotEqualTo(String value) {
            addCriterion("co_strc_name <>", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameGreaterThan(String value) {
            addCriterion("co_strc_name >", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameGreaterThanOrEqualTo(String value) {
            addCriterion("co_strc_name >=", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameLessThan(String value) {
            addCriterion("co_strc_name <", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameLessThanOrEqualTo(String value) {
            addCriterion("co_strc_name <=", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameLike(String value) {
            addCriterion("co_strc_name like", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameNotLike(String value) {
            addCriterion("co_strc_name not like", value, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameIn(List<String> values) {
            addCriterion("co_strc_name in", values, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameNotIn(List<String> values) {
            addCriterion("co_strc_name not in", values, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameBetween(String value1, String value2) {
            addCriterion("co_strc_name between", value1, value2, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoStrcNameNotBetween(String value1, String value2) {
            addCriterion("co_strc_name not between", value1, value2, "coStrcName");
            return (Criteria) this;
        }

        public Criteria andCoNameIsNull() {
            addCriterion("co_name is null");
            return (Criteria) this;
        }

        public Criteria andCoNameIsNotNull() {
            addCriterion("co_name is not null");
            return (Criteria) this;
        }

        public Criteria andCoNameEqualTo(String value) {
            addCriterion("co_name =", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameNotEqualTo(String value) {
            addCriterion("co_name <>", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameGreaterThan(String value) {
            addCriterion("co_name >", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameGreaterThanOrEqualTo(String value) {
            addCriterion("co_name >=", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameLessThan(String value) {
            addCriterion("co_name <", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameLessThanOrEqualTo(String value) {
            addCriterion("co_name <=", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameLike(String value) {
            addCriterion("co_name like", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameNotLike(String value) {
            addCriterion("co_name not like", value, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameIn(List<String> values) {
            addCriterion("co_name in", values, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameNotIn(List<String> values) {
            addCriterion("co_name not in", values, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameBetween(String value1, String value2) {
            addCriterion("co_name between", value1, value2, "coName");
            return (Criteria) this;
        }

        public Criteria andCoNameNotBetween(String value1, String value2) {
            addCriterion("co_name not between", value1, value2, "coName");
            return (Criteria) this;
        }

        public Criteria andCurValueIsNull() {
            addCriterion("cur_value is null");
            return (Criteria) this;
        }

        public Criteria andCurValueIsNotNull() {
            addCriterion("cur_value is not null");
            return (Criteria) this;
        }

        public Criteria andCurValueEqualTo(Integer value) {
            addCriterion("cur_value =", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueNotEqualTo(Integer value) {
            addCriterion("cur_value <>", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueGreaterThan(Integer value) {
            addCriterion("cur_value >", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("cur_value >=", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueLessThan(Integer value) {
            addCriterion("cur_value <", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueLessThanOrEqualTo(Integer value) {
            addCriterion("cur_value <=", value, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueIn(List<Integer> values) {
            addCriterion("cur_value in", values, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueNotIn(List<Integer> values) {
            addCriterion("cur_value not in", values, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueBetween(Integer value1, Integer value2) {
            addCriterion("cur_value between", value1, value2, "curValue");
            return (Criteria) this;
        }

        public Criteria andCurValueNotBetween(Integer value1, Integer value2) {
            addCriterion("cur_value not between", value1, value2, "curValue");
            return (Criteria) this;
        }

        public Criteria andUpValueIsNull() {
            addCriterion("up_value is null");
            return (Criteria) this;
        }

        public Criteria andUpValueIsNotNull() {
            addCriterion("up_value is not null");
            return (Criteria) this;
        }

        public Criteria andUpValueEqualTo(Integer value) {
            addCriterion("up_value =", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueNotEqualTo(Integer value) {
            addCriterion("up_value <>", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueGreaterThan(Integer value) {
            addCriterion("up_value >", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("up_value >=", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueLessThan(Integer value) {
            addCriterion("up_value <", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueLessThanOrEqualTo(Integer value) {
            addCriterion("up_value <=", value, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueIn(List<Integer> values) {
            addCriterion("up_value in", values, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueNotIn(List<Integer> values) {
            addCriterion("up_value not in", values, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueBetween(Integer value1, Integer value2) {
            addCriterion("up_value between", value1, value2, "upValue");
            return (Criteria) this;
        }

        public Criteria andUpValueNotBetween(Integer value1, Integer value2) {
            addCriterion("up_value not between", value1, value2, "upValue");
            return (Criteria) this;
        }

        public Criteria andPercentIsNull() {
            addCriterion("percent is null");
            return (Criteria) this;
        }

        public Criteria andPercentIsNotNull() {
            addCriterion("percent is not null");
            return (Criteria) this;
        }

        public Criteria andPercentEqualTo(String value) {
            addCriterion("percent =", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentNotEqualTo(String value) {
            addCriterion("percent <>", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentGreaterThan(String value) {
            addCriterion("percent >", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentGreaterThanOrEqualTo(String value) {
            addCriterion("percent >=", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentLessThan(String value) {
            addCriterion("percent <", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentLessThanOrEqualTo(String value) {
            addCriterion("percent <=", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentLike(String value) {
            addCriterion("percent like", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentNotLike(String value) {
            addCriterion("percent not like", value, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentIn(List<String> values) {
            addCriterion("percent in", values, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentNotIn(List<String> values) {
            addCriterion("percent not in", values, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentBetween(String value1, String value2) {
            addCriterion("percent between", value1, value2, "percent");
            return (Criteria) this;
        }

        public Criteria andPercentNotBetween(String value1, String value2) {
            addCriterion("percent not between", value1, value2, "percent");
            return (Criteria) this;
        }

        public Criteria andTagTimeIsNull() {
            addCriterion("tag_time is null");
            return (Criteria) this;
        }

        public Criteria andTagTimeIsNotNull() {
            addCriterion("tag_time is not null");
            return (Criteria) this;
        }

        public Criteria andTagTimeEqualTo(Date value) {
            addCriterion("tag_time =", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeNotEqualTo(Date value) {
            addCriterion("tag_time <>", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeGreaterThan(Date value) {
            addCriterion("tag_time >", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("tag_time >=", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeLessThan(Date value) {
            addCriterion("tag_time <", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeLessThanOrEqualTo(Date value) {
            addCriterion("tag_time <=", value, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeIn(List<Date> values) {
            addCriterion("tag_time in", values, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeNotIn(List<Date> values) {
            addCriterion("tag_time not in", values, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeBetween(Date value1, Date value2) {
            addCriterion("tag_time between", value1, value2, "tagTime");
            return (Criteria) this;
        }

        public Criteria andTagTimeNotBetween(Date value1, Date value2) {
            addCriterion("tag_time not between", value1, value2, "tagTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}